import request from '@/utils/request'

export function list(data,pageSize,currentPage) {
  return request({
    url:'/api/admin/log/list/'+currentPage+'/'+pageSize,
    method:'POST',
    data
  })
}

export function del(data) {
  return request({
    url:'/api/admin/log/del',
    method:'POST',
    data
  })
}

export function clear() {
  return request({
    url:'/api/admin/log/clear',
    method:'POST',
  })
}

export function download() {
  return request({
    url:'/api/admin/log/export',
    method:'POST',
    responseType: 'blob',
  })
}
